package cn.edu.scau.cmi.lvmingyan.singleton;

import cn.edu.scau.cmi.lvmingyan.singleton.Chairman;

public class Chairman {
	private static Chairman chairman;
	String name;
	private Chairman(String name){	
		setName(name);
	}	
	public String getName() {
		return this.name;
	}	
	public void setName(String name) {
		this.name=name;
	}
	public static Chairman getChairman() {
		return Chairman.chairman;
	}
	public static boolean createChairman(String name) {
		if(chairman == null) 
		{
			chairman=new Chairman(name);
		    return true;
		}	
		else return false;	
	}
}
